package cn.wolfcode.trip.base.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
    private String keyword;
    private Integer currentPage = 1;
    private Integer pageSize = 3;
    private String orderBy; // 排序的条件

    public Integer getStart() {
        return (currentPage - 1) * pageSize;
    }
}
